import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getMovies = {
  movies_lists(params) {
    return axios.post(`${base.bd}/admin/movies/lists`, qs.stringify(params));
  }, 
  movies_cate_lists_tree(params) {
    return axios.post(`${base.bd}/admin/movies_cate/lists_tree`, qs.stringify(params));
  },
  movies_saveadd(params) {
    return axios.post(`${base.bd}/admin/movies/saveadd`, qs.stringify(params));
  },
  movies_saveedit(params) {
    return axios.post(`${base.bd}/admin/movies/saveedit`, qs.stringify(params));
  },
  movies_del(params) {
    return axios.post(`${base.bd}/admin/movies/del`, qs.stringify(params));
  },
  movies_cate_lists(params) {
    return axios.post(`${base.bd}/admin/movies_cate/lists`, qs.stringify(params));
  },
  movies_cate_saveadd(params) {
    return axios.post(`${base.bd}/admin/movies_cate/saveadd`, qs.stringify(params));
  },
  movies_cate_saveedit(params) {
    return axios.post(`${base.bd}/admin/movies_cate/saveedit`, qs.stringify(params));
  },
  movies_cate_del(params) {
    return axios.post(`${base.bd}/admin/movies_cate/del`, qs.stringify(params));
  },
  movies_cate_edit(params) {
    return axios.post(`${base.bd}/admin/movies_cate/edit`, qs.stringify(params));
  },
  movies_cate_cj(params) {
    return axios.post(`${base.bd}/admin/movies_cate/cj`, qs.stringify(params));
  },
};
export default getMovies;
